import { useRouteError } from 'react-router-dom'

export const NotFound = () => {
  const routeError = useRouteError()
  console.log(routeError)
  return (
    <div>
      {JSON.stringify(routeError)}
      <h1>oops, error occurred</h1>
    </div>
  )
}
